package com.example.swagger.model;

/*
 * Copyright (C) 2018 Zhejiang xiaominfo Technology CO.,LTD.
 * All rights reserved.
 * Official Web Site: http://www.xiaominfo.com.
 * Developer Web Site: http://open.xiaominfo.com.
 */

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/***
 *
 * @since:knife4j-springdoc-openapi-demo 1.0
 * @author <a href="mailto:xiaoymin@foxmail.com">xiaoymin@foxmail.com</a>
 * 2020/03/15 20:53
 */
@Setter
@Getter
@Schema(name = "用户对象", description = "用户信息")
public class UserSchema {

    @Schema(description = "主键id",defaultValue = "1",title = "注解id-title")
    private String id;

    @Schema(description = "名称",defaultValue = "张飞")
    private String name;

    @Schema(title = "part",description = "part实体信息")
    private PartSchema partSchema;

}

// 参考 https://gitee.com/xiaoym/swagger-bootstrap-ui-demo/blob/master/knife4j-spring-boot3-demo/src/main/java/com/github/xiaoymin/boot3/model/UserSchema.java#